package com.dankegongyu.lib.dialog;

import android.os.Parcel;
import android.os.Parcelable;

public abstract class DKDialogViewConvertListener implements Parcelable {

    protected abstract void convertView(DKDialogViewHolder holder, DKBaseDialogFragment dialog);

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }

    public DKDialogViewConvertListener() {
    }

    protected DKDialogViewConvertListener(Parcel in) {

    }

    public static final Creator<DKDialogViewConvertListener> CREATOR = new Creator<DKDialogViewConvertListener>() {
        @Override
        public DKDialogViewConvertListener createFromParcel(Parcel source) {
            return new DKDialogViewConvertListener(source){
                @Override
                protected void convertView(DKDialogViewHolder holder, DKBaseDialogFragment dialog) {

                }
            };
        }

        @Override
        public DKDialogViewConvertListener[] newArray(int size) {
            return new DKDialogViewConvertListener[size];
        }
    };
}
